@extends('host.common.common')

@section('head')
    <script>
        var PAGE_DATA = {
            pagingObj : {
                total : "0",
                pageSize : "5",
                page : "1"
            },
            def_classify:{
                classify1:"{{$pid}}",
                classify2:"{{$cid}}",
            },
            main_ad_url: "",
            main_catog_data: $.parseJSON('{!! \App\B2BProject\Custom\Business\GoodsCategory::jsonDataGenerate() !!}'),
            addrInfo : $.parseJSON('{!! \App\Http\Controllers\AreaGetterController::jsonDataProvince() !!}'),
        };

    </script>
@stop
@section('body')
        <!-- top_test -->
    <div id="top_test"></div>

    <!-- web_logo_search -->
    <div id="web_logo_search"></div>

    <!-- comm_nav -->
    <div id="comm_nav"></div>

    <div class="com-w ">
        <div class="com-w-main">
            <div class="top-navigation">
                <span class="top-bg-img clearfix"></span>
                您当前的位置：
                <a href="{{route('host')}}">首页</a>
                > 商家中心
            </div>
            <div class="top-main-img" style="display: none">
                <a href="javascript:void(0)">
                    <img id="main-ad" src="" />
                </a>
            </div>
            <div id="main-tab" class="top-main-btn"></div>

            <div class="main-filter">
                <span class="sort-select" style="margin-left: 10px;">
                    <select id="sel-addr" >
                        <option>全部地区</option>
                        <option></option>
                    </select>
                </span>
                <span class="filter-right" style="float: right;">
                    供应商名称：
                    <input id="supplyer-name" type="text" />
                    <div id="search-btn" class="btn btn-warn btn-w62x28 lh15">搜索</div>
                </span>
                <input id="good-type" type="hidden" />
            </div>

            <div class="supplier-list" id="main-box"></div>

            <div id="comm-paging" class="comm-paging" style="float: right;" ></div>
        </div>
    </div>
    <!-- foot_nav -->
    <div id="foot_nav"></div>
    <div id="bottom_main"></div>

    <script type="text/template" id="seller_info_templ">
        <% _.each(obj, function(listItem){%>
        <div class="clearfix business-center-s-l">
            <div class="common-box3 supplier-l-b">
                <div class="box3-img">
                    <a href="<%= listItem.company.href %>">
                        <img src="<%= listItem.company.img %>">
                    </a>
                </div>
                <div class="box3-text">
                    <div class="box3-text-top">
                        <a href="<%= listItem.company.href %>">
                            <%= listItem.company.name %>
                        </a>
                    </div>
                    <div class="box3-text-main lh18">
                    <span class="dress">
                        地区：
                    </span>
                        <%= listItem.company.addr %>
                    </div>
                    <div class="box3-text-bottom">
                    <span class="business fl wb20 lh18">
                        主营：
                    </span>
                    <span class="pro-name fl wb60 lh18">
                        <%= listItem.company.business %>
                    </span>
                    </div>
                </div>
            </div>
            <div class="business-center-right-b">
                <% _.each(listItem.products, function(productItem){%>
                <div class="common-box2">
                    <div class="box2-img">
                        <a href="<%=productItem.href%>">
                            <img src="<%=productItem.img%>">
                        </a>
                    </div>
                    <div class="box2-text">
                        <a href="javascript:void(0)" class="lh20" title="<%=productItem.name%>">
                            <%=productItem.name%>
                        </a>
                    </div>
                </div>
                <% });%>

                <div class="business-center-r-btn">
                <a class="btn btn-warn btn-w120x40 mt20 lh30" href="<%= listItem.company.href %>">
                    查看更多详情
                </a>
                <a class="btn btn-warn btn-w120x40 search-working mt20 lh30" href="<%= listItem.company.href %>">
                    寻求合作
                </a>
                </div>
            </div>
        </div>
        <% });%>

    </script>

    <script type="text/template" id="addr_info_templ">
        <option value="">选择地区</option>

        <% _.each(obj, function(addrItem){%>
        <option value="<%=addrItem.code %>"><%=addrItem.text %></option>
        <% }); %>

    </script>


    <link rel="stylesheet" href="/assets/b2b/css/common-box.css" />
    <script type="text/javascript" src="/assets/b2b/js/libs/jquery.paging.min.js"></script>
    <script src="/assets/b2b/js/pageModules/common/C6.js"></script>
@stop